﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EndPath : MonoBehaviour {

	private void OnTriggerEnter(Collider other) {
		if(other.tag=="Enemy"){
			Monster monster=other.GetComponent<Monster>();
			monster.DestroySelf();
		}
	}
}
